const index = require('../config/index.js')
export function getUserInfo(token) {
  return new Promise((resolve, reject) => {
    wx.request({
      url: index.api + 'commonUser/info',
      method: 'get',
      header: {
        'Authrization': 'Bearer ' + token
      },
      success(res) {
        resolve(res)
      },
      fail(res) {
        reject(res)
      }
    })
  })
}
export default {
  getUserInfo
}